package com.h2.common.util.email.impl;

import java.util.Collection;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class LoggingEmailProvider extends AEmailProvider {

   private static final Logger LOG = LoggerFactory.getLogger(
         LoggingEmailProvider.class);
   
   @Override
   public boolean send(String subject, String message, String contentType,
         Collection<String> from, Collection<String> to) {
      
      LOG.trace("Subject: " + message);
      for (String address : from) {
         LOG.trace("From Address: " + address);
      }
      for (String address : to) {
         LOG.trace("To Address: " + address);
      }
      LOG.trace("Message: " + message);
      return true;
   }

}
